package com.android.lgc.android_mvp.base;


/**
 * @author $
 * @fileName BasePresenter
 * @date2021/3/8 16:17
 * @describe TODO
 * @desc
 */
public abstract class BasePresenter<V extends BaseView> {

    private V view;

    public V getView(){
        return view;
    }

    public void attachView(V view){
        this.view=view;
    }

    public void detachView(){
        this.view=null;
        //停止网络请求操作
    }
}
